<template>
 <div>
  御剑乘风来,除魔天地间!
  <h1 ref="xjj">小姐姐真好看</h1>
  <RefCom ref="RefCom"></RefCom>
 </div>
</template>
<script>
import RefCom from './components/RefCom.vue'
export default{
    name:'app',
    components:{
      RefCom
    },
    data () {
        return {
            
        }
    },
    mounted () {
      //获取dom
      console.log(this.$refs.xjj)
      //获取示例
      console.log(this.$refs.RefCom)
      //实现子传父
      console.log(this.$refs.RefCom.name)

      
    },
    computed:{
    },
    methods:{
      
      
    }
}
</script>
<style lang='less'  scoped>
    
</style>
